package com.enjoyor.soa.traffic.util.enums.signal;

public enum CrossControlMode {
	//11	特殊控制-关灯
	CLOSE_LAMP("11","关灯"),
	//12	特殊控制-全红
	ALL_RED_LAMP("12","全红"),
	//13	特殊控制-全部黄闪
	ALL_YELLOW_LAMP("13","全部黄闪"),
	//21	单点多时段定时控制
	MULTI_TIME("21","单点多时段定时控制"),
	//22	单点感应控制
	ONE_CONTROL("22","单点感应控制"),
	//23	单点自适应控制
	ONE_SELF_CONTROL("23","单点自适应控制"),
	//31	线协调控制
	COORD_CONTROL("31","线协调控制"),
	//41	区域协调控制
	REGION_CONTROL("41","区域协调控制"),
	//51	干预控制-手动控制
	MANUAL_CONTROL("51","手动控制"),
	//52	干预控制-锁定阶段控制
	LOCK_CONTROL("52","锁定阶段控制"),
	//53	干预控制-指定方案
	APPOINT_CONTROL("53","指定方案");
	
	private final String key;

	private final String value;

	private CrossControlMode(String key, String value) {
		this.key = key;
		this.value = value;
	}

	public String getKey() {
		return this.key;
	}

	public String getValue() {
		return this.value;
	}
	

	public static String getValue(String key) {  
		CrossControlMode[] enums = values();  
        for (CrossControlMode e : enums) {  
            if (e.getKey().equals(key)) {  
                return e.getValue();  
            }  
        }  
        return null;  
    }  
}
